<template>
	<view></view>
</template>

<script>
	export default{
		onLoad() {
		 
		  const value = uni.getStorageSync('launchFlag');
		  if (value) {
		   
		    uni.switchTab({
		      url: '/pages/index/index'
		    });
		  } else {
		    
		    uni.setStorage({
		      key: 'launchFlag',
		      data: true
		    });
		    uni.redirectTo({
		      url: '/pages/guide/index'
		    });
		  }
		}
	}
</script>

<style>
</style>
